<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
		<meta charset="utf-8" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <ul class="forminfo" style="margin-top: 20px;">
    	<li><label>当前实习岗位</label><div id="" class="label_right">${jobStudent.jobName }</div></li>
    	<li><label>学校指导教师</label><div id="" class="label_right">${jobStudent.schTeacherName }</div></li>
    	<li><label>问题描述</label><textarea class="long_text long_text2 " name="Question"></textarea></li>
	<li><label>&nbsp;</label><input name="" type="button" class="btn" onclick="submitForm();"  value="保存"/></li>
    </ul>
</body>
	<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
     <script type="text/javascript" src="js/jquery.tips.js"></script>
     <script src="layer/layer.js"></script>
	<script type="text/javascript" >
function submitForm() {
	if ($("textarea[name='Question']").val() == "") {
		showTips($("textarea[name='Question']"), '请填写问题!');
		return false;
	}
	$.ajax({
		type: "POST",
						url : "question/question_save.do",
						data : {
							Question : $("textarea[name='Question']").val(),
							},
						async: true,   
						dataType:'json',
						success : function(data) {
							if ("success" == data.result) {
								parent.closeAll();
							} else {
								layer.alert('添加失败!', {
									skin : 'layer-ext-moon'
								});
							}
						}
					})
	}
function showTips(obj, tips) {
	obj.tips({
		side : 3,
		msg : tips,
		bg : '#e69138',
		time : 2
	});
}

</script>
</html>
